package io.gitee.yxsnake.framework.system.api;

import com.github.lianjiatech.retrofit.spring.boot.core.RetrofitClient;
import io.gitee.yxsnake.framework.core.domain.Result;
import io.gitee.yxsnake.framework.system.api.domain.bo.RemoteAccessLogBo;
import io.gitee.yxsnake.framework.system.api.domain.bo.RemoteOperatorLogBo;
import retrofit2.http.Body;
import retrofit2.http.POST;

/**
 * @author snake
 * @description 日志服务
 * @since 2024/11/2 23:05
 */
@RetrofitClient(baseUrl = "${retrofit.pisces-system-server:http://pisces-system-server:21001/}")
public interface RemoteLogService {

    /**
     * 保存系统日志
     *
     * @param sysOperatorLog 日志实体
     */
    @POST(value = "inner/log/saveLog")
    Result<Boolean> saveLog(@Body RemoteOperatorLogBo sysOperatorLog);

    /**
     * 保存访问记录
     *
     * @param remoteAccessLogBo 访问实体
     */
    @POST(value = "inner/log/saveAccessLog")
    Boolean saveAccessLog(@Body RemoteAccessLogBo remoteAccessLogBo);

}